//
//  KYButton.m
//  kuaiyi
//
//  Created by 杨亮 on 16/3/18.
//  Copyright © 2016年 kuaiyi. All rights reserved.
//

#import "KYButton.h"

@implementation KYButton
- (instancetype)init
{
    self = [super init];
    if (self) {
        [self setContentHorizontalAlignment:UIControlContentHorizontalAlignmentLeft];
        self.titleEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);
        [self setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
        [self setBackgroundImage:[UIImage imageNamed:@"bg"] forState:UIControlStateSelected];
    }
    return self;
}

@end
